export const widgetGraphDiamond = {
  code: 'widget-graph-diamond',
  type: 'graph',
  tabName: '图形',
  label: '菱形',
  icon: 'iconchaolianjie',
  options: {
    // 配置
    setup: [
      {
        type: 'el-input-text',
        label: '图层名称',
        name: 'layerName',
        required: false,
        placeholder: '',
        value: '菱形',
      },
      {
        type: 'vue-color',
        label: '填充颜色',
        name: 'fillColor',
        required: false,
        placeholder: '',
        value: 'rgba(115,170,229,.5)',
      },
      {
        type: 'vue-color',
        label: '描边颜色',
        name: 'strokeColor',
        required: false,
        placeholder: '',
        value: '#ffffff',
      },
      {
        type: 'el-input-number',
        label: '描边粗细',
        name: 'strokeWidth',
        required: false,
        placeholder: '',
        value: 0,
      },
    ],
    // 数据
    data: [],
    // 坐标
    position: [
      {
        type: 'el-input-number',
        label: '左边距',
        name: 'left',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'el-input-number',
        label: '上边距',
        name: 'top',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'el-input-number',
        label: '宽度',
        name: 'width',
        required: false,
        placeholder: '该容器的宽度',
        value: 80,
      },
      {
        type: 'el-input-number',
        label: '高度',
        name: 'height',
        required: false,
        placeholder: '该容器的高度',
        value: 80,
      },
    ],
  }
}
